/**
 * 
 */
package org.conan.groupapp.system.service;

import java.util.Set;

import org.conan.groupapp.framework.service.IBaseService;
import org.conan.groupapp.system.entity.Authority;
import org.conan.groupapp.system.entity.User;

/**
 * @author Administrator
 *
 */
public interface IUserService extends IBaseService<User>{
	/**
	 * 根据loginid取权限code
	 * @param loginId
	 * @return
	 */
	public Set<Authority> selectAuthoritiesByUsername(String sername) throws Exception;
	/**
	 * 根据loginid取user对象
	 * @param loginId
	 * @return
	 */
	public User selectUserByUsername(String sername) throws Exception;
	
	/**
	 * 获取菜单，转化成json
	 * @param authId
	 * @return
	 * @throws Exception
	 */
	public String loadMenu2Json(Integer authId,User user) throws Exception;
}
